package com.etc.pojo;

import org.springframework.stereotype.Component;

@Component
public class Comment {

    private int commentId;
    private User user;
    private int videoId;
    private String commentContent;
    private int replyId;
    private String commentTime;

    public int getCommentId() {
        return commentId;
    }

    public void setCommentId(int commentId) {
        this.commentId = commentId;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public int getVideoId() {
        return videoId;
    }

    public void setVideoId(int videoId) {
        this.videoId = videoId;
    }

    public String getCommentContent() {
        return commentContent;
    }

    public void setCommentContent(String commentContent) {
        this.commentContent = commentContent;
    }

    public int getReplyId() {
        return replyId;
    }

    public void setReplyId(int replyId) {
        this.replyId = replyId;
    }

    public String getCommentTime() {
        return commentTime;
    }

    public void setCommentTime(String commentTime) {
        this.commentTime = commentTime;
    }

    public Comment() {
    }

    public Comment(int commentId, User user, int videoId, String commentContent, int replyId, String commentTime) {
        this.commentId = commentId;
        this.user = user;
        this.videoId = videoId;
        this.commentContent = commentContent;
        this.replyId = replyId;
        this.commentTime = commentTime;
    }

    public Comment(User user, int videoId, String commentContent) {
        this.user = user;
        this.videoId = videoId;
        this.commentContent = commentContent;
    }

    public Comment(User user, int videoId, String commentContent, int replyId) {
        this.user = user;
        this.videoId = videoId;
        this.commentContent = commentContent;
        this.replyId = replyId;
    }

    @Override
    public String toString() {
        return "Comment{" +
                "commentId=" + commentId +
                ", user=" + user +
                ", videoId=" + videoId +
                ", commentContent='" + commentContent + '\'' +
                ", replyId=" + replyId +
                ", commentTime='" + commentTime + '\'' +
                '}';
    }
}
